Page({
  data: {
    // 收藏夹
    collection: []
  },
  onShow: function (options) {
    this.getCollection()
  },
  getCollection () {
    let collection = wx.getStorageSync('collection') || []
    this.setData({
      collection
    })
  }


})